home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / X11R4 / cmds / X / include / RCS / cursorstr.h,v < prev    next >
Encoding:
Text File  |  1990-02-15  |  2.7 KB  |  92 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.02.14.16.17.09;  author tve;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @Original X11R4 distribution
  17. @
  18.  
  19.  
  20.  
  21. 1.1
  22. log
  23. @Initial revision
  24. @
  25. text
  26. @/* $XConsortium: cursorstr.h,v 1.6 89/08/04 18:23:09 rws Exp $ */
  27. /***********************************************************
  28. Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  29. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  30.  
  31.                         All Rights Reserved
  32.  
  33. Permission to use, copy, modify, and distribute this software and its 
  34. documentation for any purpose and without fee is hereby granted, 
  35. provided that the above copyright notice appear in all copies and that
  36. both that copyright notice and this permission notice appear in 
  37. supporting documentation, and that the names of Digital or MIT not be
  38. used in advertising or publicity pertaining to distribution of the
  39. software without specific, written prior permission.  
  40.  
  41. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  42. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  43. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  44. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  45. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  46. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  47. SOFTWARE.
  48.  
  49. ******************************************************************/
  50. #ifndef CURSORSTRUCT_H
  51. #define CURSORSTRUCT_H 
  52.  
  53. #include "cursor.h"
  54. #include "pixmap.h"
  55. #include "misc.h"
  56. /* 
  57.  * device-independent cursor storage
  58.  */
  59.  
  60. /*
  61.  * source and mask point directly to the bits, which are in the server-defined
  62.  * bitmap format.
  63.  */
  64. typedef struct _CursorBits {
  65.     unsigned char *source;            /* points to bits */
  66.     unsigned char *mask;            /* points to bits */
  67.     unsigned short width, height, xhot, yhot;    /* metrics */
  68.     int refcnt;                    /* can be shared */
  69.     pointer devPriv[MAXSCREENS];        /* set by pScr->RealizeCursor*/
  70. } CursorBits, *CursorBitsPtr;
  71.  
  72. typedef struct _Cursor {
  73.     CursorBitsPtr bits;
  74.     unsigned short foreRed, foreGreen, foreBlue; /* device-independent color */
  75.     unsigned short backRed, backGreen, backBlue; /* device-independent color */
  76.     int refcnt;
  77.     pointer devPriv[MAXSCREENS];        /* set by pScr->RealizeCursor*/
  78. } CursorRec;
  79.  
  80. typedef struct _CursorMetric {
  81.     unsigned short width, height, xhot, yhot;
  82. } CursorMetricRec;
  83.  
  84. extern int        FreeCursor();
  85. extern CursorPtr    AllocCursor();        /* also realizes it */
  86. extern int        AllocGlyphCursor();    /* also realizes it */
  87.                 /* created from default cursor font */
  88. extern CursorPtr    CreateRootCursor();
  89.  
  90. #endif /* CURSORSTRUCT_H */
  91. @
  92.